package com.demo.design.stractural.adapter.impl;

import com.demo.design.stractural.adapter.Driver;
import com.demo.design.stractural.adapter.Engine;


/**
 * concrete adapter
 */
public class AnotherDriver implements Driver {

    /**
     * adaptee
     */
    private Engine engine;

    public AnotherDriver(Engine engine) {
        this.engine = engine;
    }

    @Override
    public void drive() {
        /**
         * adaptee.method()
         */
        engine.run();
    }

}
